from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from api import *
urlpatterns = patterns('api',
    (r'^app/search/', 'cps.search.result'),
    (r'^app/compare/', 'cps.compare.clist'),
    (r'^app/product/$', 'cps.product.pdetail'),
    (r'^app/product/list/', 'cps.product.plist'),
    (r'^app/home/', 'home.chain_home_api.chain_home_list'),
    (r'^app/category/', 'category.chain_category_api.chain_category_list'),
    (r'^app/setting/', 'app.chain_app_api.chain_app_list'),
    (r'^app/company/', 'company.chain_company_api.chain_company_list'),
    (r'^app/comment/post/','comment.chain_commentpost_api.chain_commentpost_list'),
    (r'^app/comment/list/', 'comment.chain_commentlist_api.chain_commentlist_list'),
    (r'^app/comment/mylist/', 'comment.chain_centerlist_api.chain_centerlist_list'),
    (r'^app/reply/post/', 'comment.chain_replypost_api.chain_replypost_list'),
    (r'^app/reply/list/', 'comment.chain_replylist_api.chain_replylist_list'),
    (r'^app/city/list/', 'part.chain_part_city_api.chain_part_city_list'),
    (r'^app/part/activity/', 'activity.chain_partactivity_api.chain_partactivity_list'),
    (r'^app/part/list/', 'part.chain_part_api.chain_part_list'),
    (r'^app/part/$', 'part.chain_part_api.chain_part_detail'),
    (r'^app/user/register/', 'user.user_api.register'),
    (r'^app/user/changepwd/', 'user.user_api.change_pwd'),
    (r'^app/user/findpwd/', 'user.user_api.find_pwd'),
    (r'^app/user/login/', 'user.login_api.login'),
    (r'^app/activity/list/', 'activity.chain_activity_api.chain_activity_list'),
    (r'^app/activity/$', 'activity.chain_activity_api.chain_activity_detail'),
    (r'^app/error/404/$', 'error.error_api.error_404'),
    (r'^app/error/500/$', 'error.error_api.error_500'),
    (r'^app/version/', 'version_app.version.mapping'),
    (r'^app/apply_card/$', 'member.member_action.apply_member'),
    (r'^app/mycard/$', 'member.member_action.member_info'),
    (r'^app/mypoints/$', 'points_record.points_record_action.my_points'),
    (r'^app/mypoints_list/$', 'points_record.points_record_action.record_list'),
    (r'^app/scan_signin/$', 'points_record.points_record_action.scan_signin'),
    (r'^app/member_statement/$', 'member.member_action.member_statement'),
    (r'^app/first_login/$', 'points_record.points_record_action.first_login'),
    (r'^app/get_state/$', 'member.member_action.get_state'),
    (r'^app/feedback/$', 'member.member_action.feedback'),
    (r'^app/get_apply_columns/$', 'member.member_action.get_apply_columns'),
    (r'^app/after_share/$', 'points_record.points_record_action.after_share'),
)

#yiliao  api map
urlpatterns += patterns('api',
    (r'^app/home_yiliao/', 'home.chain_home_api.chain_home_list'),
    (r'^app/service_category/', 'yiliao.service_category.chain_category_api.chain_category_list'),
    (r'^app/service/$', 'cps.product.pdetail'),
    (r'^app/service/list/', 'cps.product.plist'),
    (r'^app/activity_yiliao/list/', 'activity.chain_activity_api.chain_activity_list'),
    (r'^app/activity_yiliao/$', 'activity.chain_activity_api.chain_activity_detail'),
    (r'^app/user_yiliao/register/', 'user.user_api.register'),
    (r'^app/user_yiliao/changepwd/', 'user.user_api.change_pwd'),
    (r'^app/user_yiliao/findpwd/', 'user.user_api.find_pwd'),
    (r'^app/user_yiliao/login/', 'user.login_api.login'),
    (r'^app/setting_yiliao/', 'app.chain_app_api.chain_app_list'),
    (r'^app/hospital/', 'company.chain_company_api.chain_company_list'),
    (r'^app/chain_hospital/$', 'part.chain_part_api.chain_part_detail'),
    (r'^app/medical_answer/ask/$', 'yiliao.medical_answer.medical_answer_action.ask'),
    (r'^app/medical_answer/list/$', 'yiliao.medical_answer.medical_answer_action.list'),
    (r'^app/medical_answer/count/$', 'yiliao.medical_answer.medical_answer_action.get_count'),
    (r'^app/medical_answer/delete/$', 'yiliao.medical_answer.medical_answer_action.delete'),
    (r'^app/part_hospital/list/', 'part.chain_part_api.chain_part_list'),
)
